package cn.dkk.structure_design.facade.pojo;

/**
 * @author dkk
 * @date 2022/7/11
 * @desc
 */
public class TV {

    private final String name="TV";

    public void on(boolean sswitch){
        if (sswitch)
        System.out.println("打开电视");
    }

    public void off(boolean sswitch){
        if (!sswitch)
        System.out.println("打开电视");
    }

}
